package com.itheima.myDUOTAI.test01;

public class Test {
    public static void main(String[] args) {
        // 创建一个饲养员对象
        AnimalOperator operator = new AnimalOperator();

        // 指挥饲养员喂猫
        operator.useAnimal(new Cat());
        // 指挥饲养员喂狗
        operator.useAnimal(new Dog());
    }
}
